Editing URL format rules in control properties

If you only need to change the URL format for a few controls in the repository, you can modify each control individually.

You can set window and control properties that use URL expected values, such as Href, URL, and SRC, to match a specified format during playback. URL format rules let you to specify how to handle parts of dynamic URLs, such as domain and parameters. This allows QA Wizard Pro to locate controls during playback, even when the URL changes.

For example, if a URL has a session ID parameter, you can create a URL format rule to ignore the parameter. During playback, QA Wizard Pro ignores the session ID parameter and searches for controls based on the rest of the URL.

Tip: You can also create and apply URL format rules to all window and control properties in the application repository for a version. See Editing URL format rules.

1. Select a window or control in the Application Repository pane and choose File > Properties.

The Properties dialog box opens with the Search Method tab selected.

2. In the row for the property with the URL in the expected value, select Matches format as the Action used to search for the URL.

3. Mouse over the URL in the Expected Value column and click Edit.

The Edit URL Format dialog box opens. The following information is displayed for each part of the URL:

Note: Click Edit URL to modify the expected URL. See Editing window and control properties.

4. Select an Action to specify how QA Wizard Pro searches for the expected value.

5. Enter the Expected Value.

QA Wizard Pro searches for the expected value in the URL and applies the rule if it is found. An expected value is not required if Exists or Ignore is selected in the Action column.

Tip: If repository variables are configured for the application version, you can use them in URL format expected values. Repository variables are displayed on the Repository Variables tab in the version Properties dialog box. See Creating repository variables.

6. Click OK to save the changes.

7. Click OK to close the Properties dialog box.